<?php
/*****
Template Name: 页面模版
******/
get_header();
?>
<?php 
$name = $_GET['ttway']; 
if($name == 'all'){ echo '==========================='; exit; }
?>
<?php  global $post;  $posttitle = get_the_title($post->ID);  ?>
<?php if($post->ID == '5' || $posttitle == 'CG视频教程'){ ?>
<?php $obj = get_post_type_object('cgvideo'); ?>
   <div class="h1"><div class="titl">//<?php echo $obj->labels->singular_name; ?>&#12288;&#12288;</div></div>
<div class="large left">
<div class="z-l f-list">
    <div class="hd"><div class="hdt">本周强力推荐</div><div class="rt" id="sp_order"><a class="ckc on" id="sp_order_hot" href="http://localhost/works/cg%E8%A7%86%E9%A2%91%E6%95%99%E7%A8%8B/?ttway=all">查看更多&gt;</a></div></div>
    <div class="vidbox">
	<?php  most_viewed('cgvideo');  ?>	
    </div>
</div>
<?php  page_list_view('cgvideo','cgvideoset'); ?>
 
</div>

<?php } else if($post->ID == '7' || $posttitle == '动画') { ?>
	
<?php $obj = get_post_type_object('animation'); ?>
<div class="h1"><div class="titl">//<?php echo $obj->labels->singular_name; ?>&#12288;&#12288;</div></div>
<div class="large left">
	<div class="z-l f-list">
    <div class="hd"><div class="hdt">本周强力推荐</div><div class="rt" id="sp_order"><a class="ckc on" id="sp_order_hot" href="/list/rank-douga.html#promote,1,2012-09-19,2012-09-26">查看更多&gt;</a></div></div>
    	<div class="vidbox">
		<?php  most_viewed('animation');  ?>
        </div>
    </div>
<?php  page_list_view('animation','animationcat'); ?>
</div>
<?php } else if($post->ID == '9' || $posttitle == '音乐') { ?>
	
<?php $obj = get_post_type_object('music'); ?>
<div class="h1"><div class="titl">//<?php echo $obj->labels->singular_name; ?>&#12288;&#12288;</div></div>
<div class="large left">
	<div class="z-l f-list">
    <div class="hd"><div class="hdt">本周强力推荐</div><div class="rt" id="sp_order"><a class="ckc on" id="sp_order_hot" href="/list/rank-douga.html#promote,1,2012-09-19,2012-09-26">查看更多&gt;</a></div></div>
    	<div class="vidbox">
		<?php  most_viewed('music');  ?>
        </div>
    </div>
<?php  page_list_view('music','musicscat'); ?>
</div>
<?php } else if($post->ID == '11' || $posttitle == '游戏') { ?>
	
<?php $obj = get_post_type_object('games'); ?>
<div class="h1"><div class="titl">//<?php echo $obj->labels->singular_name; ?>&#12288;&#12288;</div></div>
<div class="large left">
	<div class="z-l f-list">
    <div class="hd"><div class="hdt">本周强力推荐</div><div class="rt" id="sp_order"><a class="ckc on" id="sp_order_hot" href="/list/rank-douga.html#promote,1,2012-09-19,2012-09-26">查看更多&gt;</a></div></div>
    	<div class="vidbox">
		<?php  most_viewed('games');  ?>
        </div>
    </div>
<?php  page_list_view('games','gamescat'); ?>
</div>
<?php } else if($post->ID == '13' || $posttitle == '娱乐') { ?>
	
<?php $obj = get_post_type_object('recreation'); ?>
<div class="h1"><div class="titl">//<?php echo $obj->labels->singular_name; ?>&#12288;&#12288;</div></div>
<div class="large left">
	<div class="z-l f-list">
    <div class="hd"><div class="hdt">本周强力推荐</div><div class="rt" id="sp_order"><a class="ckc on" id="sp_order_hot" href="/list/rank-douga.html#promote,1,2012-09-19,2012-09-26">查看更多&gt;</a></div></div>
    	<div class="vidbox">
		<?php  most_viewed('recreation');  ?>
        </div>
    </div>
<?php  page_list_view('recreation','recreationscat'); ?>
</div>
<?php } else if($post->ID == '15' || $posttitle == '咨询') { ?>
	
<?php $obj = get_post_type_object('advisory'); ?>
<div class="h1"><div class="titl">//<?php echo $obj->labels->singular_name; ?>&#12288;&#12288;</div></div>
<div class="large left">
	<div class="z-l f-list">
    <div class="hd"><div class="hdt">本周强力推荐</div><div class="rt" id="sp_order"><a class="ckc on" id="sp_order_hot" href="/list/rank-douga.html#promote,1,2012-09-19,2012-09-26">查看更多&gt;</a></div></div>
    	<div class="vidbox">
		<?php  most_viewed('advisory');  ?>
        </div>
    </div>
<?php  page_list_view('advisory','advisorycat'); ?> 
</div>
<?php } ?>
<!--  右侧  -->
<div class="small right">
<script language="javascript" src="http://static.hdslb.com/images/index.js"></script>
      <div class="ad-c1"><a href="http://manyanshe.taobao.com/view_page-4315424.htm" target="_blank"><img border="0" src="http://static.hdslb.com/ad-images/part/c1/2012-07-24-03.jpg"></a></div>
      <div class="z-r">
      <div class="hd"><div class="hdt"><a class="xds">热门视频</a></div></div>
          <div class="center">
              <ul class="rlist">
    	<li class="a1"><a href="/video/av360469/" title="【银魂style】我把肛门塞！我吧刚弄死她~ 播放:-- 视频长度:1:52" target="_blank"><img src="http://i1.hdslb.com/user/2661/266136/13482069837cf9b6b237a0d254.jpg"><div class="title">【银魂style】我把肛门塞！我吧刚弄死她~</div></a><div class="i"><b class="c1">--</b><b class="c2">2106</b></div></li>    	<li class="a2"><a href="/video/av359549/" title="当LOL成为SAO的副本 播放:84413 视频长度:3:28" target="_blank"><img src="http://i1.hdslb.com/user/3758/375893/1348041516a2c0f5d846393580.jpg"><div class="title">当LOL成为SAO的副本</div></a><div class="i"><b class="c1">84413</b><b class="c2">2634</b></div></li>    	<li class="a3"><a href="/video/av359833/" title="【银魂】燃到骨子里的热血之魂&mdash;英雄 播放:63468 视频长度:8:15" target="_blank"><img src="http://i1.hdslb.com/user/3460/346059/13480751648054f6e22ed3484c.jpg"><div class="title">【银魂】燃到骨子里的热血之魂&mdash;英雄</div></a><div class="i"><b class="c1">63468</b><b class="c2">3160</b></div></li>    	<li class="a4"><a href="/video/av360388/" title="十万个冷笑话第二集官方预告 播放:59703 视频长度:0:51" target="_blank"><img src="http://i2.hdslb.com/user/4211/421190/134819862331a6e9a24e2c0e84.jpg"><div class="title">十万个冷笑话第二集官方预告</div></a><div class="i"><b class="c1">59703</b><b class="c2">593</b></div></li>    	<li class="a5"><a href="/video/av360529/" title="【東方MMD】魔眼 ～U Don't Gain～ 播放:45233 视频长度:6:41" target="_blank"><img src="http://i1.hdslb.com/user/1845/184568/13482129371cc532ed34e1954b.jpg"><div class="title">【東方MMD】魔眼 ～U Don't Gain～</div></a><div class="i"><b class="c1">45233</b><b class="c2">1652</b></div></li>    	<li class="a6"><a href="/video/av360361/" title="【氷菓】吹着你的风【MAD】 播放:43905 视频长度:9:14" target="_blank"><img src="http://i2.hdslb.com/user/651/65163/1348193485e2f11b5356193849.jpg"><div class="title">【氷菓】吹着你的风【MAD】</div></a><div class="i"><b class="c1">43905</b><b class="c2">2242</b></div></li>    	<li class="a7"><a href="/video/av359753/" title="【手书Fate/zero】 幻想嘉年华OP 【高画质】 播放:36493 视频长度:1:58" target="_blank"><img src="http://i1.hdslb.com/user/8/843/13480635945673f08be96d2b6b.jpg"><div class="title">【手书Fate/zero】 幻想嘉年华OP 【高画质】</div></a><div class="i"><b class="c1">36493</b><b class="c2">1120</b></div></li>    	<li class="a8"><a href="/video/av361656/" title="【新人低调发布】FREELY TOMORROW(MMDPV)(伊斯兰&amp;哥特初音) 播放:36445 视频长度:14:01" target="_blank"><img src="http://i1.hdslb.com/user/3299/329932/134834923009029f4ae6dc9d88.jpg"><div class="title">【新人低调发布】FREELY TOMORROW(MMDPV)(伊斯兰</div></a><div class="i"><b class="c1">36445</b><b class="c2">1535</b></div></li>    	<li class="a9"><a href="/video/av362641/" 视频长度:0:36"="" 播放:30113="" 我都这样卖萌了还是不给钱吗？"="" title="红白：" target="_blank"><img src="http://i0.hdslb.com/user/2649/264901/134849627599e74462f321c06c.jpg"><div class="title">红白："我都这样卖萌了还是不给钱吗？"</div></a><div class="i"><b class="c1">30113</b><b class="c2">431</b></div></li>    	<li class="a10"><a href="/video/av360116/" title="「中二病也想谈恋爱」先行ED 播放:28983 视频长度:1:29" target="_blank"><img src="http://i1.hdslb.com/user/196/19653/13481384095f26e5005dcdbf41.jpg"><div class="title">「中二病也想谈恋爱」先行ED</div></a><div class="i"><b class="c1">28983</b><b class="c2">617</b></div></li>    
              </ul>
              <div class="more">
              <span>本周播放数最高的视频</span>
              <a href="/list/rank-douga.html#hot,1,2012-09-19,2012-09-26" target="_blank">更多</a>
              </div>
          </div>
      </div>
      <div class="ad-c2"></div>
      <div class="z-r f-list">
      <div class="hd"><div class="hdt"><a href="#">最新投稿</a></div></div>
      <ul class="right_box new">
            <li><a href="/video/av363168/" target="_blank"><div class="t">【手书金魂】银冲KISS唾【腐向】</div></a><i>09-25</i></li>
            <li><a href="/video/av363167/" target="_blank"><div class="t">【DMMD×套马杆】套马的五色战队威武雄壮</div></a><i>09-25</i></li>
            <li><a href="/video/av363150/" target="_blank"><div class="t">【燃向】 EVA 战使徒</div></a><i>09-25</i></li>
            <li><a href="/video/av363146/" target="_blank"><div class="t">Another style</div></a><i>09-25</i></li>
            <li><a href="/video/av363141/" target="_blank"><div class="t">【MAD】6分5秒让你喜欢上冰菓</div></a><i>09-25</i></li>
            <li><a href="/video/av363140/" target="_blank"><div class="t">【略睾同步】【扭腰向】斩魂style-.-欧派刚弄死他。是欧派不是我爸</div></a><i>09-25</i></li>
            <li><a href="/video/av363120/" target="_blank"><div class="t">贝亚娜斗神MAD</div></a><i>09-25</i></li>
            <li><a href="/video/av363108/" target="_blank"><div class="t">哆基朴的天空</div></a><i>09-25</i></li>
            <li><a href="/video/av363103/" target="_blank"><div class="t">【红白×天依】千本樱【MMD】</div></a><i>09-25</i></li>
            <li><a href="/video/av363101/" target="_blank"><div class="t">Clannad-杏之恋</div></a><i>09-25</i></li>
            <li><a href="/video/av363098/" target="_blank"><div class="t">10月「樱花庄的宠物女孩」宣番CM 第三弹</div></a><i>09-25</i></li>
            <li><a href="/video/av363090/" target="_blank"><div class="t">「新妹魔王的契约者」紹介PV</div></a><i>09-25</i></li>
            <li><a href="/video/av363083/" target="_blank"><div class="t">【11区草泥马动画】毛茸茸的Pacalatta</div></a><i>09-25</i></li>
            <li><a href="/video/av363072/" target="_blank"><div class="t">[MMD]World_is_mine_Transformers_Sta</div></a><i>09-25</i></li>
            <li><a href="/video/av363065/" target="_blank"><div class="t">PRISM HEART</div></a><i>09-25</i></li>
            </ul>
      </div>
</div>
<div style="clear:both;"></div>

<?php get_footer(); ?>